/*
package com.speed_run.config;

import java.util.List;

import lombok.extern.log4j.Log4j2;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

import com.alibaba.fastjson.serializer.SerializerFeature;
import com.alibaba.fastjson.support.config.FastJsonConfig;
import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter;


//@Configuration
@Log4j2
public class FastJsonConfiguration extends WebMvcConfigurerAdapter {
	
	*/
/**
	 * 修改定义消息转换器
	 *//*

	@Override
	public void configureMessageConverters(List<HttpMessageConverter<?>> converters) {
		//调用弗雷消息转换器配置
		log.info("convert....");
		super.configureMessageConverters(converters);
		*/
/*FastJsonHttpMessageConverter fastConvert = new FastJsonHttpMessageConverter();
		FastJsonConfig fastConfig = new FastJsonConfig();
		fastConfig.setSerializerFeatures(
				SerializerFeature.DisableCircularReferenceDetect,
				SerializerFeature.WriteMapNullValue,
				SerializerFeature.WriteNullListAsEmpty,
				SerializerFeature.WriteNullStringAsEmpty,
				SerializerFeature.WriteNullBooleanAsFalse,
				SerializerFeature.WriteNullNumberAsZero
				);
		//处理中文乱码问题
		List<MediaType> fastMediaType = new ArrayList<>();
		fastMediaType.add(MediaType.APPLICATION_JSON_UTF8);
		converter.setSupportedMediaTypes(fastMediaType);
		converter.setFastJsonConfig(config);
		fastConvert.setFastJsonConfig(fastConfig);
		converters.add(fastConvert);*//*

	}
}
*/
